﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite
{
    public class Collate
        : Expression
    {
        private Collate(IExpression expression, CollationName collationName)
            : base("COLLATE", expression, collationName)
        {
        }

        public static Collate Binary(IExpression expression)
        {
            return new Collate(expression, CollationName.Binary);
        }

        public static Collate CaseInsenstive(IExpression expression)
        {
            return new Collate(expression, CollationName.CaseInsenstive);
        }

        public static Collate RightTrim(IExpression expression)
        {
            return new Collate(expression, CollationName.RightTrim);
        }
    }
}
